﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RapChieuPhim.DAO;
using System.Collections;
using RapChieuPhim.DTO;

namespace RapChieuPhim.BUS
{
    class DatVeBUS
    {
        public static DatVeDTO GetByID(int id)
        {
            DatVeDAO dvDAO = new DatVeDAO();
            return dvDAO.GetByID(id);
        }

        public static IList GetAll()
        {
            DatVeDAO dvDAO = new DatVeDAO();
            return dvDAO.GetAll();
        }

        public static void Insert(DatVeDTO DatVe)
        {
            DatVeDAO dvDAO = new DatVeDAO();
            dvDAO.Insert(DatVe);
        }

        public static void Update(DatVeDTO DatVe)
        {
            DatVeDAO dvDAO = new DatVeDAO();
            dvDAO.Update(DatVe);
        }

        public static void Delete(int id)
        {
            DatVeDAO dvDAO = new DatVeDAO();
            dvDAO.Delete(id);
        }
    }
}
